package com.oig.sys.workflow.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.io.Serializable;


/**
 * @author wuxl
 * 规则触发执行日志
 */
@Getter
@Setter
@ToString
@Entity
@Table(name = "tb_auto_exe_log")
@EntityListeners({AuditingEntityListener.class})
public class TbAutoExeLog implements Serializable {

	/**
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name = "id", nullable = false)
	private Integer id;

	/**
	 */
	@Column(name = "rule_id")
	private Integer ruleId;

	/**
	 */
	@Column(name = "opt_id")
	private Integer optId;

	/**
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "execute_time")
	private java.util.Date executeTime;

	/**
	 */
	@Column(name = "execute_result")
	private String executeResult;

	/**
	 */
	@Column(name = "relation_type")
	private String relationType;

	/**
	 */
	@Column(name = "relation_id")
	private String relationId;

	/**
	 */
	@Column(name = "rule_json")
	private String ruleJson;

	/**
	 */
	@Column(name = "opt_json")
	private String optJson;

	/**
	 */
	@Column(name = "tenant_id")
	private Integer tenantId;

	/**
	 */
	@Column(name = "tenant_name")
	private String tenantName;
}
